 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
 <!-- Navigation -->
 <div class="navbar-header">
     <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
         <span class="sr-only">Toggle navigation</span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
     </button>
     <a class="navbar-brand" href="javascript:goPage('/index.ur');"><img src="/resources/common/images/logo.png" style="width:145px;height:30px;"></a>
 </div>
 <!-- /.navbar-header -->
 
	<ul class="nav navbar-top-links navbar-right">
			<c:forEach items="${topMenuList_1Level}" var="list" varStatus="c">
    			<li class="dropdown">
				    <a href="${list.URL}?code=${list.MENU_ID}" class="dropdown-toggle" data-toggle="dropdown">
				    	<i class="fa ${list.ICON} fa-fw"></i><c:if test="${list.NAME_VIEW_YN eq 'Y'}"> ${list.MENU_NAME}</c:if><c:if test="${list.CHILD_NODE_CNT > 0}"> <i class="fa fa-caret-down"></i></c:if>
				    </a>
				<c:if test="${list.CHILD_NODE_CNT > 0}">
				    <ul class="dropdown-menu" id="${list.MENU_ID}">
				    </ul>
    			</c:if>
    			</li>
			</c:forEach>
			
		<%-- <li class="dropdown">

			<a class="dropdown-toggle" data-toggle="dropdown" href="#">
				<i class="fa fa-user fa-fw"></i> ${memberSession.USER_NAME} (${memberSession.AUTH_LEVEL_NAME}) <i class="fa fa-caret-down"></i>
			</a>
			
			<ul class="dropdown-menu dropdown-user">
				<c:if test="${memberSession.AUTH_LEVEL eq '1'}">
				<li>
					<a href="javascript:goPage('/member/list.ur');"><i class="fa fa-user fa-fw"></i> 직원 관리</a>
				</li>
				</c:if>
				<c:if test="${memberSession.AUTH_LEVEL eq '1'}">
				<li>
					<a href="#"><i class="fa fa-gear fa-fw"></i> 기준 코드 등록</a>
          		</li>
				</c:if>
          		<li class="divider"></li>
          		<li>
          			<a href="javascript:goPage('/login/logout.ur');"><i class="fa fa-sign-out fa-fw"></i> 로그아웃</a>
          		</li>
      		</ul>
      <!-- /.dropdown-user -->
  		</li> --%>
  <!-- /.dropdown -->
 </ul>
 
 <script>
	<c:forEach items="${topMenuList_2Level}" var="list" varStatus="c">
		$('#${list.PARENT_ID}').append("<li><a href='${list.URL}?code=${list.MENU_ID}'><i class='fa ${list.ICON} fa-fw'></i> ${list.MENU_NAME}</a></li>");
	</c:forEach>
</script>
